<div class="ui vertical menu" >
{{range $key,$value :=  $.leftmenu}}
    <div class="ui styled accordion">
    
        <div class="title  "><i class="dropdown icon"></i> {{$key}} </div>
        <div class="content">
          {{range $value}}
          <a class="teal item transition hidden" onclick="rightcontent('{{.url}}')">{{.text}}</a>
          {{end}}
        </div>
    </div>
    {{end}}
</div>


<script>
//折叠菜单必须调用
$('.ui.accordion')
  .accordion()
;
</script>